<template>
  <view>
    <OrderTemplate
      type="add"
      :data="temp"
      :option="option"
      :event-channel="eventChannel"
    />
  </view>
</template>

<script>
import OrderTemplate from './../../components/homeTemplate'
export default {
  components: {
    OrderTemplate
  },
  data() {
    return {
      temp: [],
      option: [],
      eventChannel: {}
    }
  },
  onLoad(option) {
    this.temp = JSON.parse(decodeURIComponent(option.list))
    this.eventChannel = this.getOpenerEventChannel()
  }
}
</script>

<style lang="less"></style>
